<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>用户账户管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {

        });
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/useraccount/userAccount/listOfCount">用户账户列表</a></li>
    <%--    <shiro:hasPermission name="useraccount:userAccount:edit">
            <li><a href="${ctx}/useraccount/userAccount/form">用户账户添加</a></li>
        </shiro:hasPermission>--%>
</ul>
<form:form id="searchForm" modelAttribute="userAccount"
           action="${ctx}/useraccount/userAccount/listOfCount"
           method="post"
           class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <ul class="ul-form">
            <%--<li><label>等级：</label>
                <form:input path="level" htmlEscape="false" maxlength="11" class="input-medium"/>
            </li>--%>
        <li><label>开始时间：</label>
            <input name="startDate" type="text" readonly="readonly" maxlength="20"
                   class="input-medium Wdate"
                   value="<fmt:formatDate value="${tsDayRedBagTask.startDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
        </li>
        <li><label>结束时间：</label>
            <input name="endDate" type="text" readonly="readonly" maxlength="20"
                   class="input-medium Wdate"
                   value="<fmt:formatDate value="${tsDayRedBagTask.endDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
        </li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>ID</th>
        <th>日期</th>
        <th>安卓日注册量</th>
        <th>安卓注册总量</th>
        <th>IOS日注册量</th>
        <th>IOS注册总量</th>
        <th>日注册总量</th>
        <th>注册总量</th>
        <th>其他来源</th>
        <shiro:hasPermission name="useraccount:userAccount:edit">
            <th>操作</th>
        </shiro:hasPermission>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="userAccount">
        <tr>
            <td>${userAccount.id}</td>
            <td><fmt:formatDate value="${userAccount.createDate}" pattern="yyyy-MM-dd"/></td>
            <td>${userAccount.android}</td>
            <td>${userAccount.androidCount}</td>
            <td>${userAccount.ios}</td>
            <td>${userAccount.iosCount}</td>
            <td>${userAccount.dayOfCount}</td>
            <td>${userAccount.allCount}</td>
            <td>${userAccount.other}</td>
            <shiro:hasPermission name="useraccount:userAccount:edit">
                <td>
                    <a href="${ctx}/useraccount/userAccount/form?id=${userAccount.id}">修改</a>
                    <a href="${ctx}/useraccount/userAccount/delete?id=${userAccount.id}"
                       onclick="return confirmx('确认要删除该用户账户吗？', this.href)">删除</a>
                </td>
            </shiro:hasPermission>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>